﻿using UnityEngine;
using System.Collections;

public class RandomStart : MonoBehaviour {
	private int randomStart;
	// Use this for initialization
	void Start () {
		randomStart = (int)(Random.value * 500);
	}
	
	// Update is called once per frame
	void Update () {
		if (randomStart-- == 0)
				gameObject.GetComponent<ParticleSystem> ().Play ();
	}
}
